<!--  -->
<template>
  <div>
    <el-dialog title="提示" :visible.sync="dialogVisible" width="35%" :before-close="handleClose">
      <img :src="src" alt />
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      src: "",
    };
  },
  methods: {
    initImg(e) {
      this.dialogVisible = true;
      console.log(e);
      this.src = e;
    },
    handleClose(done) {
      this.dialogVisible = false;
    },
  },
};
</script>

<style  lang='scss' scoped >
img {
  width: 100%;
}
</style>
